当我使用时npm update
,我可以更新所有软件包,但package.json中的软件包版本号不变,在package.json中,具有devDependencies
和dependencies
,如下所示:
{ "name": "test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "jquery": "^1.11.2" }, "devDependencies": { "lodash": "^2.4.1" } }
如何使用一行命令更新所有软件包和numbner中的所有软件包,devDependencies
并且dependencies
也会更新。